<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
<%
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/";
%>
<html>

<head>
	<%@ include file="/commons/meta.jsp" %>
	<base href="<%=basePath%>">
	<base   target="_self">
	<title>修改密码</title>
</head>

<body>
<%@ include file="/commons/messages.jsp" %>

<s:form action="/pages/Users/savePwd.do" method="post" theme="simple">
	<table width="100%" class="tHeader" align="center"> 
		<tr>
			<td>
				修改密码
			</td>
		</tr>
	</table>
	<table class="formTable">
		<tr>
			<td class="tdLabel">用户名:</td>
			<td><s:textfield name="loginName" theme="simple" cssStyle=" width: 120px " maxlength="16" value="%{model.loginName}" readonly="true" /></td>
		</tr>
		
		<tr>
			<td class="tdLabel">旧密码:</td>
			<td><s:password maxlength="16" size="16" cssStyle=" width: 120px " name="password" cssClass="required "/></td>
		</tr>
		
		<tr>
			<td class="tdLabel">新密码:</td>
			<td><s:password maxlength="16"  size="16" cssStyle=" width: 120px " name="newPassword" id="newPassword" cssClass="required "/></td>
		</tr>
		
		<tr>
			<td class="tdLabel">重复新密码:</td>
			<td><s:password maxlength="16" size="16" cssStyle=" width: 120px " name="newPassword2" cssClass="equals-newPassword required"/></td>
		</tr>
		
		<tr>
			<td colspan="2" align="center"><input id="submitButton"  name="submitButton" class="button"  type="submit" value="提交" /></td>
		</tr>
		
		
	</table>
</s:form>

<script>
	
	/*new Validation(document.forms[0],{immediate:true,onSubmit:true,onFormValidate : function(result,form) {
		var finalResult = result;
		
		//在这里添加自定义验证
		
		return disableSubmit(finalResult,'submitButton');
	}});*/
	
	new Validation(document.forms[0],{immediate:true,onSubmit:true});
</script>

</body>
</html>